<!--
  Generated template for the BeneficiaryDetailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

    <ion-toolbar content-page class="fir-toolbar">
        <ion-buttons start>
            <button ion-button icon-only (click)="goBack()">
                <i class="toolbar-back"></i>
            </button>
        </ion-buttons>
        <ion-title>
            保单受益人详情
        </ion-title>
        <ion-buttons end>
            <button ion-button icon-only adpmenutoggle>
                <i class="toolbar-menu"></i>
            </button>
        </ion-buttons>
    </ion-toolbar>

</ion-header>


<ion-content>
    <ion-item class="policy-head">
        <span class="first">受益人{{index}}</span>
        <span>{{beneficiaryDetail.clientName?beneficiaryDetail.clientName:'-'}}</span>
    </ion-item>
    <ion-list>
        <ion-list-header>
            <span class="first">基本信息</span>
        </ion-list-header>
        <ion-item class="list-info">
            <span class="first-info">类型</span>
            <span>
                {{beneficiaryDetail.type?beneficiaryDetail.type:'-'}}
            </span>
        </ion-item>
        <ion-item class="list-info">
            <span class="first-info">出生日期</span>
            <span>
                {{beneficiaryDetail.birthday?(beneficiaryDetail.birthday*1000|myDate:'YYYY/MM/DD'):'-'}}
            </span>
        </ion-item>
        <ion-item class="list-info">
            <span class="first-info">与被保险人关系</span>
            <span>
                {{beneficiaryDetail.relationship?beneficiaryDetail.relationship:'-'}}
            </span>
        </ion-item>
        <ion-item class="list-info">
            <span class="first-info">顺位</span>
            <span>
                {{beneficiaryDetail.orderNum?('第'+(beneficiaryDetail.orderNum | numberToChn)+'顺位受益人'):'-'}}
            </span>
        </ion-item>
        <ion-item class="list-info">
            <span class="first-info">比例</span>
            <span>
                {{beneficiaryDetail.percentage?beneficiaryDetail.percentage:'-'}}
            </span>
        </ion-item>
        <ion-item class="list-info">
            <span class="first-info">身份证复印件</span>
            <!--<span>-->
                <!--{{beneficiaryDetail.idCopyFlag=='N'?'未留存':(beneficiaryDetail.idCopyFlag=='Y'?'已留存':'-')}}-->
            <!--</span>-->
            <span>
                {{beneficiaryDetail.idCopyFlag=='Y'?'已留存':'未留存'}}
            </span>
        </ion-item>
        <ion-item class="list-info last">
            <span class="first-info">身份证有效期</span>
            <!--<span>-->
                <!--{{beneficiaryDetail.idExpiryDate?(beneficiaryDetail.idExpiryDate*1000|myDate:'YYYY/MM/DD'):'-'}}-->
            <!--</span>-->
            <span>
                {{beneficiaryDetail.IdExpiryDate?moment(beneficiaryDetail.IdExpiryDate*1000).format('YYYY/MM/DD'):'-'}}
            </span>
        </ion-item>

    </ion-list>
</ion-content>
